<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<body>

	<div id="content-header">
		<h1>查看评价</h1>
	</div>
	<div id="breadcrumb">
		<a href="#" title="Go to Home" class="tip-bottom"><i
			class="icon-home"></i> 教学评价</a> <a href="#" class="current">查看评价</a>
	</div>
	<div class="container-fluid" ms-controller="AppraiseList">
		<div class="row-fluid">
			<div class="col-xs-12">
				<!-- 				<a href="javascript:void(0)" class="btn btn-info" -->
				<!-- 					ms-click="backadminSee()" style="margin-bottom: 10px" -->
				<!-- 					ms-visible="isManager">返回</a> <a href="javascript:void(0)" -->
				<!-- 					class="btn btn-info" ms-click="backTcherSee()" -->
				<!-- 					style="margin-bottom: 10px" ms-visible="isTcher">返回</a> -->
				<div class="widget-box">
					<div class="widget-title">
						<span class="icon"> <i class="icon-file"></i>
						</span>
						<h5>所有的评价</h5>
					</div>
					<div class="widget-content nopadding">
						<ul class="recent-posts">
							<li ms-repeat-obj="dataList">
								<div class="user-thumb">
									<img width="40" height="40" alt="User" src="img/demo/av2.jpg" />
									<strong style="font-size: 10px; margin-top: 15px;"
										ms-visible="!isStu">某同学</strong>
								</div>
								<div class="article-post">
									<span class="user-info" ms-if="obj.score<60"
										style="color: red;"><strong style="margin-right: 40px">姓名:{{obj.teacher.tname}}</strong>
										<strong style="margin-right: 40px">
											科目:{{obj.subject.sName}}</strong><strong>{{obj.student.major}}{{obj.student.banji}}</strong>
									</span> <span class="user-info" ms-if="obj.score>60"
										style="color: green;"><strong
										style="margin-right: 40px">姓名:{{obj.teacher.tname}}</strong> <strong
										style="margin-right: 40px"> 科目:{{obj.subject.sName}}</strong><strong>{{obj.student.major}}{{obj.student.banji}}</strong>
									</span>
									<p ms-if="obj.score<60" style="color: red; margin-top: 10px;">
										评语:{{obj.content}} <span
											style="margin-left: 50px; float: right; font-size: 20px;">得分：{{obj.score}}</span>
									</p>
									<p ms-if="obj.score>60"
										style="color: green; margin-top: 10px;">
										评语:{{obj.content}} <span
											style="margin-left: 50px; float: right; font-size: 20px;">得分：{{obj.score}}</span>
									</p>
									<div ms-visible="isStu">
										<p style="color: green; margin-left: 55px;"
											ms-visible="obj.reply!=''">
											老师回复： <span style="margin-left: 10px;">{{obj.reply}}</span>
										</p>
										<a href="#" class="btn btn-info btn-mini"
											style="margin-left: 50px;" ms-click="edit(obj.id)">修改评价</a>
									</div>
									<div ms-visible="isTcher">
										<p style="color: green; margin-left: 55px;"
											ms-visible="obj.reply!=''">
											<span>你的回复：{{obj.reply}}</span>
										</p>
										<a href="#" class="btn btn-primary btn-mini"
											ms-visible="obj.reply==''" style="margin-left: 50px;"
											data-toggle="modal" data-target="#myModal">回复</a> <a href="#"
											class="btn btn-success btn-mini" style="margin-left: 50px;"
											ms-click="TcherSee(obj.id)">查看</a>
									</div>
									<div ms-visible="isManager">
										<p style="color: green; margin-left: 55px;"
											ms-visible="obj.reply!=''">
											<span>教师回复：{{obj.reply}}</span>
										</p>
										<a href="#" class="btn btn-success btn-mini"
											style="margin-left: 50px;" ms-click="TcherSee(obj.id)">查看</a>
									</div>
								</div>
								<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
									aria-labelledby="myModalLabel" aria-hidden="true">
									<div class="modal-dialog">
										<div class="modal-content">
											<div class="modal-header">
												<button type="button" class="close" data-dismiss="modal"
													aria-hidden="true">&times;</button>
												<h4 class="modal-title" id="myModalLabel">评教回复</h4>
											</div>
											<div class="modal-body">
												<form class="form-horizontal">
													<div>
														<strong>回复内容：</strong> <input ms-duplex="replystr"
															type="text" style="height: 30px; width: 450px;">
													</div>
												</form>
											</div>
											<div class="modal-footer">
												<button type="button" class="btn btn-default"
													data-dismiss="modal">关闭</button>
												<button ms-click="reply(obj.id)" type="button"
													class="btn btn-primary">提交回复</button>
											</div>
										</div>
										<!-- /.modal-content -->
									</div>
								</div>
							</li>
							<li class="viewall"><a title="View all posts"
								class="tip-top" href="#"> + {{isNull}} + </a></li>
						</ul>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
